package cc.yugu.yhdw.common.domain.hdw;

import cc.yugu.yhdw.common.domain.PageEntity;
import cc.yugu.yhdw.common.entity.json.DateTimeSerializer;
import org.codehaus.jackson.map.annotate.JsonSerialize;

import java.util.Date;

public class UnregisterBattery extends PageEntity {
    protected String id; //主键
    protected Integer volume; //剩余电量
    protected Date refreshTime; //刷新时间
    protected Double lng; //经度
    protected Double lat; //纬度
    protected Date createTime; //创建时间

    public UnregisterBattery() {
    }

    public UnregisterBattery(String id, Integer volume, Date refreshTime, Double lng, Double lat, Date createTime) {
        this.id = id;
        this.volume = volume;
        this.refreshTime = refreshTime;
        this.lng = lng;
        this.lat = lat;
        this.createTime = createTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getVolume() {
        return volume;
    }

    public void setVolume(Integer volume) {
        this.volume = volume;
    }

    @JsonSerialize(using = DateTimeSerializer.class)
    public Date getRefreshTime() {
        return refreshTime;
    }

    public void setRefreshTime(Date refreshTime) {
        this.refreshTime = refreshTime;
    }

    public Double getLng() {
        return lng;
    }

    public void setLng(Double lng) {
        this.lng = lng;
    }

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    @JsonSerialize(using = DateTimeSerializer.class)
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
